#include "NamedFingers.h"

FingerName getNext(int name)
{
	if(name==FingerName::LITTLE)
	{
		return FingerName::RING;
	}
	else if(name==FingerName::RING)
	{
		return FingerName::MIDDLE;
	}
	else if(name==FingerName::MIDDLE)
	{
		return FingerName::INDEX;
	}
	else if(name==FingerName::INDEX)
	{
		return FingerName::THUMB;
	}
	else if(name==THUMB)
	{
		return FingerName::UNKNOWN;
	}
	else
	{
		return FingerName::LITTLE;
	}
}

FingerName getPrevious(int name)
{
	if(name==FingerName::LITTLE)
	{
		return FingerName::UNKNOWN;
	}
	else if(name==FingerName::RING)
	{
		return FingerName::LITTLE;
	}
	else if(name==FingerName::MIDDLE)
	{
		return FingerName::RING;
	}
	else if(name==FingerName::INDEX)
	{
		return FingerName::MIDDLE;
	}
	else if(name==FingerName::THUMB)
	{
		return FingerName::INDEX;
	}
	else
	{
		return FingerName::THUMB;
	}
}